package com.hyb.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *  销售机会信息
 * </p>
 *
 * @author hyb
 * @since 2021-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_sale")
@ApiModel("销售机会信息")
public class Sale implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "sale_id", type = IdType.AUTO)
    @ApiModelProperty("销售机会id")
    private Integer saleId;
    @ApiModelProperty("销售机会来源")
    private String saleSource;
    @ApiModelProperty("客户名称")
    private String customerName;
    @ApiModelProperty("成功几率")
    private Integer successProbability;
    @ApiModelProperty("销售概要")
    private String saleOutline;
    @ApiModelProperty("联系人")
    private String contactsName;
    @ApiModelProperty("联系人电话")
    private String contactsTel1;
    @ApiModelProperty("销售描述")
    private String saleDescribe;
    @ApiModelProperty("创建人")
    private Integer saleCreater;
    @ApiModelProperty("创建时间")
    private LocalDate saleDate;
    @ApiModelProperty("状态")
    private String saleState;
    @ApiModelProperty("指派时间")
    private LocalDate saleAssignDate;
    @ApiModelProperty("指派给")
    private Integer staffId;
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE,update = "now()")
    private LocalDateTime updateTime;
    @ApiModelProperty("修改次数")
    @Version
    private Integer version;

}
